package com.ksyun.campus.dataserver.domain;

public class ReplicateRequest {
	private Endpoint src;
	private Endpoint dst;
	private long size;

	public Endpoint getSrc() { return src; }
	public void setSrc(Endpoint src) { this.src = src; }

	public Endpoint getDst() { return dst; }
	public void setDst(Endpoint dst) { this.dst = dst; }

	public long getSize() { return size; }
	public void setSize(long size) { this.size = size; }

	public static class Endpoint {
		private String host;
		private int port;
		private String fileId; // only for src
		private Integer blkIdx; // only for src

		public String getHost() { return host; }
		public void setHost(String host) { this.host = host; }

		public int getPort() { return port; }
		public void setPort(int port) { this.port = port; }

		public String getFileId() { return fileId; }
		public void setFileId(String fileId) { this.fileId = fileId; }

		public Integer getBlkIdx() { return blkIdx; }
		public void setBlkIdx(Integer blkIdx) { this.blkIdx = blkIdx; }
	}
}


